﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NonLogged.Master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="PL___Web_Application.Login" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .login_bt
        {
            width: 100px;
            height: 30px;
            background-image: url('grafics/login_bt.png');
            background-color: transparent;
            border: 0;
            background-repeat: no-repeat;
            z-index: 5;
        }
        .login_bt:hover
        {
            background-image: url('grafics/login_bt_hover.png');
        }
    </style>
    <script type="text/javascript" language="javascript">

        //To preload images
        Img1 = new Image();
        Img1.src = "grafics/login_bt_hover.png";
          

    </script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="contentplaceholder" runat="server">
    <div id="contentlogin" runat="server">
        <br />
        <h2 runat="server">
            Select Type of Login</h2>
        <div id="logintype" runat="server">
            <asp:RadioButton ID="private_rd" runat="server" GroupName="customertype" 
                Text="Private Customer" AutoPostBack="True"  OnCheckedChanged="changeform" 
                Font-Size="Medium"/>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:RadioButton ID="business_rd" runat="server" GroupName="customertype" 
                Text="Business Customer" AutoPostBack="True"  OnCheckedChanged="changeform" 
                Font-Size="Medium" />
        </div>
        <div id="login_form" runat="server" visible="false">
            <br />
         <asp:Label ID="login_tittle" runat="server" Font-Bold="True" 
                Font-Size="X-Large"></asp:Label>
                <br />
            <br />
            <table>
                <tr>
                    <td>
                        <b>Username:</b>
                    </td>
                    <td>
                        <asp:TextBox ID="username_tb" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Password:</b>
                    </td>
                    <td>
                        <asp:TextBox ID="password_tb" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <br />
                        <asp:Button runat="server" ID="login_button" Text="" class="login_bt" OnClick="LoginCustomer" />
                       
                    </td>
                    <td>
                        <br />
                    </td>
                </tr>
            </table>
              <asp:Label ID="error_lb" runat="server" ForeColor="Red"></asp:Label>
        </div>
    
    </div>
</asp:Content>
